<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<!-- colum right -->
<div class="middle myclear">
	<div class="pad10">
		<h2 class="marbottom10 martop20">
			<?php echo $tracking_lang['zone'];?>
		</h2>
        <br />
		<div class="dashboard-box myclear">
			<div id="campaigndiv">
				<table class="tbl-list" width="100%" cellpadding="0" cellspacing="0" border="1" id="table">
	                <thead>
						<tr>
                            <th class="td-label bold text-center ver-middle" width="50" style="padding: 5px 0;">
								<span>Stt</span>
							</th>
							<th class="td-label bold text-center ver-middle" width="50" style="padding: 5px 0;">
								<span><?php echo $tracking_lang['zoneid'];?></span>
							</th>
							<th class="td-label bold text-center ver-middle" style="padding: 5px 0;">
								<span><?php echo $tracking_lang['zonename'];?></span>
							</th>
                            <th class="td-label bold text-center ver-middle" style="padding: 5px 0;">
								<span>Site</span>
							</th>
                            <th class="td-label bold text-center ver-middle" style="padding: 5px 0;">
								<span><?php echo $tracking_lang['location'];?></span>
							</th>
                            <th class="td-label bold text-center ver-middle" style="padding: 5px 0;">
								<span>CTR</span>
							</th>
						</tr>
	                </thead>
	                <tbody>
                    <?php $index=1;
                    foreach($info as $if){ ?>
                        <tr>
                            <td>
                                <?php echo $index;?>
                            </td>
    						<td>
                                <?php echo $if['zoneid'];?>
    						</td>
                            <td>
                                <?php echo $if['zonename'];?>
    						</td>
                            <td>
                                <?php echo $if['site'];?>
    						</td>
                            <td>
                                <p class="pad5">
    								<?php $mystring =$if['location'];
                                    if(strpos($mystring,0)==false)
                                    {
                                        $mystring = str_replace('0',$tracking_lang['toanquoc'],$mystring);
                                    }
                                    if(strpos($mystring,1)==false)
                                    {
                                        $mystring = str_replace('1',$tracking_lang['bac'],$mystring);
                                    }
                                    if(strpos($mystring,2)==false)
                                    {
                                        $mystring = str_replace('2',$tracking_lang['trung'],$mystring);
                                    }
                                    if(strpos($mystring,3)==false)
                                    {
                                        $mystring = str_replace('3',$tracking_lang['nam'],$mystring);
                                    }
                                    echo $str= rtrim($mystring,',');
                                    ?>
    							</p>
    						</td>
                            <td>
                                <?php echo $if['ctr'];?>
                            </td>
    					</tr>
                    <?php $index++;
                    } ?>	
	                </tbody>
				</table>
			</div>	
		</div>
		<br />
        <br />
        <br />
        <br />
        <br />
	</div> 
</div>